Skip to main content

dateTime

Type

keyword

Summary

Used with the sort and sort container commands to sort by date and/or time.

Syntax

dateTime

Description

Use the dateTime keyword when sorting by a field or portion of a container that is a date or time.

Alphabetical sorting does not take the special format of dates and times into account. For example, a normal sort places 11:30 AM after 2:00 AM, because 2 is greater than 1. The dateTime keyword recognizes all LiveCode's date and time formats and sorts them in time order, rather than alphabetical or numeric order.

Examples

sort cards dateTime by field "Last Modified Date"

command: sort, sort container

glossary: keyword, LiveCode, command, container, format, sort

keyword: field, text

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?